package com.tbit.uqbike.object.pojo;

import com.tbit.common.entity.BaseEntity;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * 设备计费规则绑定对象 machine_fee_bound
 *
 * @author jing
 * @date 2021-06-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class MachineFeeBound extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer boundId;

    /**
     * 设备id
     */
    private Integer machineId;

    /**
     * 主键id
     */
    private Integer feeId;

    /**
     * 添加时间
     */
    private Date addTime;

    private String userCode;

    private List<String> userCodes;

    public MachineFeeBound(Integer machineId, Integer feeId, Date addTime) {
        this.machineId = machineId;
        this.feeId = feeId;
        this.addTime = addTime;
    }

    public MachineFeeBound(List<String> userCodes) {
        this.userCodes = userCodes;
    }
}
